import {
  createSelector,
  createFeatureSelector,
  ActionReducerMap
} from "@ngrx/store";
import * as fromSymbol from "./symbol.reducer";
import { TradeActions } from "../actions";
import * as fromRoot from "@/reducers/index";

export interface TradeState {
  trade: fromSymbol.State;
}

export interface State {
  trade: fromSymbol.State;
}

export const reducers: ActionReducerMap<
  TradeState,
  TradeActions.TradeActionsUnion
> = {
  trade: fromSymbol.reducer
};

// export const getTradeState = createFeatureSelector<State, TradeState>("trade");

// export const symbolLists = createSelector(
//   fromRoot.getTradeState,
//   (state: any) => {
//     return state.symbol.selectSymbolResponse.data;
//   }
// );

// export { symbolLists, symbolMap, orderLists } from "@/reducers/index";
